package braipetro.interfaces.regras;

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */



import java.rmi.Remote;
import java.rmi.RemoteException;


/**
 *
 * @author manasses
 */
public interface IRegras extends Remote{
    public boolean start() throws RemoteException;
    public boolean stop() throws RemoteException;
    public boolean isStarted() throws RemoteException;
    public boolean restart() throws RemoteException;
    public boolean startRegra(String rg) throws RemoteException;
    public boolean stopRegra(String rg) throws RemoteException;
    public boolean isTriggeredRegra(String rg) throws RemoteException;    //Qual avaliacao atual
    public boolean isStartedRegra(String rg) throws RemoteException;    //Se a regra está sendo avaliada
    public int getNumRegras() throws RemoteException;
    public String getRegras() throws RemoteException;
}
